<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        div{
            width: 30px;
            height: 30px;
            border: 1px solid red;
            border-radius: 5px;
            margin: 5px;
            line-height: 30px;
            text-align: center;
        }
        nav{
            width: 120px;
            height: 120px;
            position: fixed;
            top: 50%;
            left: 50%;
            margin-top: -60px;
            margin-left: -60px;
        }
    </style>
</head>
<body>
    <nav>
        <div class="asd">1</div>
        <div class="asd">2</div>
        <div class="asd">3</div>
        <div class="asd">4</div>
        <div class="asd">5</div>
        <div class="asd">6</div>
        <div class="asd">7</div>
        <div class="asd">8</div>
        <div class="asd">9</div>
    </nav>
</body>
</html>
<script>
    const st = document.querySelector('nav')
    st.addEventListener('click',function(e){
        e.target.innerText = null
    })
</script>